package io.mybatis.example.springboot.model;

import io.mybatis.provider.Entity;
import org.apache.ibatis.type.JdbcType;

import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * sys_post - 岗位信息表
 *
 * @author mkj
 */
@Getter
@Setter
@Entity.Table("sys_post" remark = "岗位信息表", autoResultMap = true)
public class SysPostDO {
  @Entity.Column(value = "post_id", id = true, remark = "岗位ID", updatable = false, insertable = false)
  private Long postId;

  @Entity.Column(value = "post_code", remark = "岗位编码")
  private String postCode;

  @Entity.Column(value = "post_name", remark = "岗位名称")
  private String postName;

  @Entity.Column(value = "post_sort", remark = "显示顺序")
  private Integer postSort;

  @Entity.Column(value = "status", remark = "状态（0正常 1停用）")
  private String status;

  @Entity.Column(value = "create_by", remark = "创建者")
  private String createBy;

  @Entity.Column(value = "create_time", remark = "创建时间", jdbcType = JdbcType.TIMESTAMP)
  private Date createTime;

  @Entity.Column(value = "update_by", remark = "更新者")
  private String updateBy;

  @Entity.Column(value = "update_time", remark = "更新时间", jdbcType = JdbcType.TIMESTAMP)
  private Date updateTime;

  @Entity.Column(value = "remark", remark = "备注")
  private String remark;

}
